using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Add Partial Overlapping Edges Layout</para>
    /// <para>Add a partial overlapping edges layout to a diagram template</para>
    /// <para>将部分重叠边布局添加到逻辑示意图模板</para>
    /// </summary>    
    [DisplayName("Add Partial Overlapping Edges Layout")]
    public class AddPartialOverlappingEdgesLayout : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddPartialOverlappingEdgesLayout()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_is_active">
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_buffer_width_absolute">
        /// <para>Buffer Width</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_offset_absolute">
        /// <para>Offset</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AddPartialOverlappingEdgesLayout(object _in_utility_network, object _template_name, _is_active_value _is_active, string _buffer_width_absolute, string _offset_absolute)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
            this._is_active = _is_active;
            this._buffer_width_absolute = _buffer_width_absolute;
            this._offset_absolute = _offset_absolute;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Partial Overlapping Edges Layout";

        public override string CallName => "un.AddPartialOverlappingEdgesLayout";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _is_active.GetGPValue(), _buffer_width_absolute, _offset_absolute, _optimize_edges.GetGPValue(), _out_utility_network, _out_template_name];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Active")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _is_active_value _is_active { get; set; }

        public enum _is_active_value
        {
            /// <summary>
            /// <para>ACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ACTIVE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>INACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INACTIVE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Buffer Width</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Buffer Width")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string _buffer_width_absolute { get; set; }


        /// <summary>
        /// <para>Offset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Offset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string _offset_absolute { get; set; }


        /// <summary>
        /// <para>Optimize edges</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Optimize edges")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _optimize_edges_value _optimize_edges { get; set; } = _optimize_edges_value._false;

        public enum _optimize_edges_value
        {
            /// <summary>
            /// <para>OPTIMIZE_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("OPTIMIZE_EDGES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DO_NOT_OPTIMIZE_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DO_NOT_OPTIMIZE_EDGES")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        public AddPartialOverlappingEdgesLayout SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}